.navbar {
    background-color: #F8EDE3; /* Light transparency */
    padding: 1rem 1rem; /* Adjust padding to move the content towards the edges */
    display: flex;
    align-items: flex-start; /* Align items to the top */
}

.navbar-brand {
    margin-right: left; /* Keep logo on the left */
    padding: 0; /* Remove extra padding for tighter alignment to the top */

}

/* Adjust navigation links to stay to the right */
.navbar-nav {
    margin-left: auto; /* Push navigation links to the right */
}

.nav-link {
    font-size: 1.2rem;
    color: #333;
    padding: 0rem 1rem;
    font-weight: bold;
    margin: 0 2rem; /* Add margin to space out the links */
}

/* Dropdown styling */
.nav-item.dropdown .dropdown-menu {
    background-color: #B3C8CF;
    position: absolute;
    top: 100%; /* Align just below the navbar */
    left: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);  /* For smooth transition */
    transition: visibility 0s, opacity 0.3s ease, transform 0.3s ease;  /* Smooth transition */
    display: block; /* Always keep as block for consistent layout */
}

.nav-item.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* Return to original position */
    background-color: #B3C8CF;
}

/* Arrow rotation when dropdown is active */
.nav-item.dropdown .nav-link::after {
    content: "";  /* Add an arrow down */
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .nav-link::after {
    transform: rotate(-180deg);  /* Rotate arrow upwards */
}

/* Dropdown menu item styling */
.dropdown-item {
    color: black;
    padding: 8px 15px;
    margin:0;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.2); /* Hover effect for items */
}



/* Custom styling for the py-5 class */
.py-5 {
    background-color: #F8EDE3; /* Light gray background */
    border: 1px solid #F8EDE3; /* Light border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    padding: 3rem 1rem; /* Adjust padding */
    margin-bottom: 2rem; /* Bottom margin for spacing between sections */
}

/* Custom styling for section headings */
.py-5 h2 {
    font-family: 'Arial', sans-serif; /* Font family */
    color: #343a40; /* Darker text color */
    
    padding-bottom: 0.5rem; /* Padding below the h2 text */
    margin-bottom: 1.5rem; /* Margin below the h2 text */
}

/* Custom styling for paragraphs */
.py-5 p {
    font-family: 'Arial', sans-serif; /* Font family */
    color: #6c757d; /* Muted text color */
    line-height: 1.6; /* Line height for better readability */
    margin-bottom: 1rem; /* Margin below paragraphs */
}

/* Custom styling for images to ensure consistent look */
.py-5 img {
    border-radius: 4px; /* Slightly rounded corners for images */
    transition: transform 0.3s; /* Smooth transition */
}

/* Scale effect on images when hovering */
.py-5 img:hover {
    transform: scale(1.05); /* Slightly increase the size on hover */
}



/* Additional responsive adjustments */
@media (max-width:
 767.98px) {
    .py-5 {
        padding: 2rem 0.5rem; /* Adjust padding for smaller screens */
    }

    .py-5 h2 {
        font-size: 1.5rem; /* Smaller font size for headings on small screens */
    }
}

/* Contact Button */
.contact-btn {
    background-color: #eaeaea;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    margin-left: 1rem; /* Add margin to the left for spacing */
}

.contact-btn:hover {
    background-color: #ddd;
    color: #000;
}

/* General body styles */
body, html {
    height: 100%; /* Ensure the body and html take full height */
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #F8EDE3;
}

/* Header styling */
.header {
    text-align: center;
    padding: 5rem;
    background-color: #F8EDE3;
    border-bottom: 1px solid #ccc;
}

.header h1 {
    color: #333;
}

/* Hero section styling */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #F8EDE3 100%, #eaeaea 100%);
    height: calc(100vh - 120px);
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 50%;
    padding-right: 1.5rem; /* Narrower spacing between text and image */
}

.hero-content h1 {
    font-size: 4.5rem; /* Slightly smaller headline */
    margin-bottom: 0.75rem; /* Reduce bottom margin */
    color: #343a40;
    font-family: 'Arial', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.4rem; /* Adjust paragraph size */
    line-height: 1.5; /* Adjust line height */
    color: #6c757d;
    font-family: 'Arial', sans-serif;
    margin-bottom: 1.5rem; /* Reduce bottom margin */
}

/* Styling for Learning Paths Section */
#learning-paths .card {
    background-color: #E5DDC5; /* Light background color for cards */
    border: none;
    border-radius: 12px; /* Rounded corners for cards */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for cards */
    margin-bottom: 2rem; /* Space between cards */
}

#learning-paths h2 {
    font-family: 'Arial', sans-serif;
    font-size: 2.5rem; /* Larger font size for headings */
    color: #343a40; /* Darker heading color */
    margin-bottom: 1.5rem; /* Space below heading */
}

.card h3 {
    font-family: 'Arial', sans-serif;
    font-size: 1.8rem; /* Card title font size */
    color: #343a40; /* Blue color for card titles */
    margin-bottom: 1rem; /* Space below title */
}

.card p {
    font-size: 1rem; /* Paragraph font size */
    color: #6c757d; /* Muted text color */
    margin-bottom: 1rem; /* Space below paragraphs */
}

.card ul {
    padding-left: 1.5rem; /* Padding for unordered lists */
}

.card ul li {
    font-size: 1rem; /* List item font size */
    color: #343a40; /* Darker text color for list items */
    margin-bottom: 0.5rem; /* Space between list items */
}

#learning-paths .card:nth-child(1) {
    background-color: #eef114; /* Light beige */
}


/* Responsive Adjustments */
@media (max-width: 767.98px) {
    #learning-paths h2 {
        font-size: 2rem;
    }
    
    #learning-paths p {
        font-size: 1rem;
    }
    
    .card h3 {
        font-size: 1.5rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
}

footer {
    background-color: #141414; 
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: center; 
    align-items: center;
    position: relative; 
}

.social-media-buttons {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000; 
    display: flex; 
}

.social-btn {
    display: block;
    margin-right: 15px; 
    transition: transform 0.3s ease; 
}

.social-btn img {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Make the icons circular */
}

.social-btn img:hover {
    transform: scale(1.1); /* Slightly enlarges the icon on hover */
}

/* Ensure last social button doesn't have right margin */
.social-media-buttons a:last-child {
    margin-right: 0;
}

#accreditation-values .card {
    background-color: #F1EEDC; /* Change this to your desired color */
}


/* Media query for small devices (smartphones) */
@media (max-width: 767.98px) {
    
    /* Adjust navbar for mobile: stack content vertically */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav {
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-link {
        font-size: 1rem; /* Slightly smaller text */
        margin: 0.5rem 0; /* Reduce the margin between links */
        padding: 0.5rem; /* Reduce padding */
    }

    /* Hero Section: stack text/image vertically */
    .hero {
        flex-direction: column;
        text-align: center; /* Center align text */
        height: auto; /* Allow height to adjust automatically */
    }

    .hero-content, .hero-image {
        max-width: 90%; /* Reduce max-width */
        padding-right: 0; /* Remove padding */
    }

    .hero-content h1, .hero-content p {
        font-size: 1.5rem; /* Reduce font size for hero content */
    }

    /* Section Cards: single column layout for mobile */
    .card {
        width: 100%; /* Full width for mobile */
        margin-bottom: 2rem; /* Add margin below each card */
    }

    #learning-paths .card, #accreditation-values .card {
        margin: auto; /* Center cards on smaller screens */
        max-width: 95%; /* Manage width */
    }

    /* Content Typography */
    .py-5 h2, #learning-paths, #accreditation-values h2 {
        font-size: 1.75rem; /* Reduce font size for headings */
    }

    /* General adjustments */
    body {
        font-size: 1rem; /* Base font size suitable for small screens */
        line-height: 1.5; /* Ensure good readability */
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* Prevent horizontal overflow */
    }

    img {
        max-width: 100%; /* Ensure images scale properly */
        height: auto;
    }

    .container {
        padding: 0 1rem; /* Reduce side padding */
    }

    footer {
        flex-direction: column; /* Stack the social icons and text vertically */
        text-align: center; /* Center everything */
        padding: 10px; /* Reduce padding on mobile */
    }

    .social-media-buttons {
        position: static; /* Remove absolute positioning */
        margin-bottom: 10px; /* Add space below social icons */
        justify-content: center; /* Center the social buttons */
    }

    .social-media-buttons a img {
        width: 35px; /* Make the icons slightly smaller on mobile */
        height: 35px;
    }
}